<admintpl file="header" />
</head>
<body style="min-width: 800px;">
	<div class="wrap js-check-wrap">
		<ul class="nav nav-tabs">
			<li class="active"><a href="">日常流水数据</a></li>
<!-- 			<li class=""><a href="{:U('',['print'=>2,'map'=>$map])}" target='_blank'>导出预览</a></li>
			<li class=""><a href="{:U('',['print'=>1])}">导出</a></li> -->
		</ul>
		<form class="well form-search" method="post" action="{:U('index')}">
			时间
			<input type="text" name="start_time" class="js-date" value="{$_REQUEST[start_time]}" style="width: 80px;" autocomplete="off">-
			<input autocomplete="off" type="text" class="js-date" name="end_time" value="{$_REQUEST['end_time']}" style="width: 80px;"> 姓名
			<input type="text" name="name" style="width: 80px;" value="{$_REQUEST[name]}"> 部门 
			<select name="dep_id" id="">
				<option value="">全部</option>
				{$department}
			</select>			
			<button class="btn btn-primary">搜索</button>
			<a class="btn btn-primary" href="{:U('')}">清空</a>
		</form>
		<form class="js-ajax-form" method="post">

			<table class="table table-hover table-bordered table-list">
				<thead>
					<tr>
						<th width="50">ID</th>
						<th width="">姓名</th>
						<th width="">工号</th>
						<th width="">部门</th>
						<th width="">日期</th>
						<th width="">星期</th>
						<th width="">上班打卡</th>
						<th width="">下班打卡</th>
						<th width="">迟到</th>
						<th width="">早退</th>
						<th width="">加班分钟</th>
						<th width="">有效出勤</th>
						<th width="">实际出勤</th>
						<th width="">准时在岗</th>
						<th width="">缺勤分钟</th>
						<th width="">请假小时</th>
					</tr>
				</thead>
				<foreach name="list" item="vo">
				<tr>
					<td>{$vo.id}</td>
					<td>{$vo.name}</td>
					<td>{$vo.sn}</td>
					<td>{$vo.dep_name}</td>
					<td>{$vo.date}</td>
					<td>{$vo.date_str}</td>
					<td>{$vo.duty_on}</td>
					<td>{$vo.duty_off}</td>
					<td>{$vo.stu_late|default=0}</td>
					<td>{$vo.stu_leave_early|default=0}</td>
					<td>{$vo.overtime|default=0}</td>
					<td>{$vo.work_effect|get_hour = ###}</td>
					<td>{$vo.work_actual|get_hour = ###}</td>
					<td>{$vo.work_effect_918|get_hour = ###}</td>
					<td>{$vo[stu_absent] >= 0 && !empty($vo[stu_absent]) ? $vo[stu_absent] : 0 }</td>
					<td>
						<notempty name='vo.leave_compensatory'>补休:{$vo.leave_compensatory}</notempty>
						<notempty name='vo.leave_casual'>事假:{$vo.leave_casual}</notempty>
						<notempty name='vo.leave_evection'>外出:{$vo.leave_evection}</notempty>
						<notempty name='vo.leave_sick_min'>病假:{$vo.leave_sick_min}</notempty>
						<notempty name='vo.leave_annual'>年假:{$vo.leave_annual}</notempty>
						<notempty name='vo.leave_marriage'>婚假:{$vo.leave_marriage}</notempty>
						<notempty name='vo.leave_maternity'>产假:{$vo.leave_maternity}</notempty>
						<notempty name='vo.leave_paternity'>陪产假:{$vo.leave_paternity}</notempty>
						<notempty name='vo.leave_other'>其他:{$vo.leave_other}</notempty>
					</td>
				</tr>
				</foreach>
			</table>
			<div class="pagination">{$page}</div>
		</form>
	</div>
	<script src="__PUBLIC__/js/common.js"></script>
</body>
</html>